package com.mona.polarbearmall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Auther: jingmeina456
 * @Date: 2018/10/29
 * @Description:
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("hello")
    @ResponseBody
    public String test(){
        return "my first spring boot project！</br> properties include mysql and redis";
    }

    @RequestMapping("index")
    public String index(HttpServletRequest request){
        return "ftl/home";
    }
}
